package com.qcq.wecheck.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.Version;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 用户-考勤表 中间表
 * </p>
 *
 * @author O
 * @since 2018-09-24
 */
@Data
@Accessors(chain = true)
@TableName("user_schedule")
public class UserSchedule extends Model<UserSchedule> {

    private static final long serialVersionUID = 1L;

    /**
     * 微信openId
     */
    @TableId("open_id")
    private String openId;
    /**
     * 考勤表id
     */
    @TableField("schedule_id")
    private Long scheduleId;


    @Override
    protected Serializable pkVal() {
        return this.openId;
    }

}
